package bocchi.card;

import bocchi.BocchiCore;
import bocchi.base.BaseCustomCard;
import bocchi.BocchiCore;
import bocchi.power.ErosionPower;
import com.megacrit.cardcrawl.actions.common.GainBlockAction;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import com.megacrit.cardcrawl.powers.AbstractPower;

public class Snicker extends BaseCustomCard {
    private static final String RAW_ID = Snicker.class.getSimpleName();
	public static final String GAME_ID = BocchiCore.getGameID(RAW_ID);

    public Snicker() {
        super(RAW_ID);
    }

    @Override
    public void use(AbstractPlayer player, AbstractMonster monster) {
        AbstractPower power = monster.getPower(ErosionPower.GAME_ID);
        if (power != null) {
            addToBot(new GainBlockAction(player, player, power.amount * magicNumber));
        }
    }
}
